<!DOCTYPE HTML>
<title>Canvas test: 2d.drawImage.animated.apng</title>
<!--[if IE]><script src="../excanvas/excanvas.js"></script><![endif]-->
<script src="../tests.js"></script>
<link rel="stylesheet" href="../tests.css">
<link rel="prev" href="2d.drawImage.animated.gif.html" title="2d.drawImage.animated.gif">
<link rel="next" href="2d.drawImage.animated.poster.html" title="2d.drawImage.animated.poster">
<body class="show_output">
<p>
 <a href="2d.drawImage.animated.gif.html" accesskey="p" title="[p] 2d.drawImage.animated.gif">&lt;</a>
 <a href="index.html">[index]</a>
 <a href="2d.drawImage.animated.poster.html" accesskey="n" title="[n] 2d.drawImage.animated.poster">&gt;</a>
<h1><a href="index.2d.html">2d</a>.<a href="index.2d.drawImage.html">drawImage</a>.<a href="index.2d.drawImage.animated.html">animated</a>.apng</h1>
<p class="desc">drawImage() of an APNG with no poster frame draws the first frame</p>
<div class="refs">References:
<ul>
<li><a href="spec.html#testrefs.2d.drawImage.animated">2d.drawImage.animated</a>

</ul>
</div>

<p class="output">Actual output:</p>
<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
<p class="output expectedtext">Expected output:<p><img src="green-100x50.png" class="output expected" id="expected" alt="">
<ul id="d"></ul>
<script>
_addTest(function(canvas, ctx) {

deferTest();
setTimeout(wrapFunction(function () {
    ctx.drawImage(document.getElementById('anim-gr.png'), 0, 0);
    _assertPixelApprox(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255", 2);
}), 500);


});
</script>
<img src="../images/anim-gr.png" id="anim-gr.png" class="resource">

